<?php

namespace Database\Seeders;

use App\Models\LinkModel;
use Illuminate\Database\Seeder;

class LinkSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $linkList = [
            [
                'name' => '程序员宝盒',
                'jump_link' => 'https://www.cxybox.com',
                'status' => LinkModel::STATUS_OPEN
            ],
            [
                'name' => '程序员宝盒',
                'jump_link' => 'https://www.cxybox.com',
                'status' => LinkModel::STATUS_OPEN
            ]
        ];

        // 批量插入数据
        if (!empty($linkList)) {
            LinkModel::query()->insert($linkList);
        }
    }
}
